package com.ss.android.article.base.feature.feed.presenter;

import com.ss.android.article.base.feature.feed.presenter.RefreshAdManager.o$a;
import com.ss.android.image.BaseImageManager;

import java.util.Iterator;
import java.util.List;

final class q extends RefreshAdManager.c {
    private final RefreshAdManager c;
    private final List a;
    private final BaseImageManager b;

    q(RefreshAdManager arg2, List arg3, BaseImageManager arg4) {
        super((byte) 0);
        this.c = arg2;
        this.a = arg3;
        this.b = arg4;
    }

    public final void a() {
        Object v0;
        Iterator v1 = this.a.iterator();
        do {
            if (!v1.hasNext()) {
                return;
            }

            v0 = v1.next();
            if (v0 == null) {
                continue;
            }
            this.c.a(this.b, ((o$a) v0).mImageInfo);

            if (!((o$a) v0).j.isEmpty()) {
                Iterator v2 = ((o$a) v0).j.iterator();
                while (true) {
                    if (!v2.hasNext()) {
                        break;
                    }

                    v0 = v2.next();
                    if (v0 == null) {
                        continue;
                    }

                    if (!((o$a) v0).a()) {
                        continue;
                    }
                    this.c.a(this.b, ((o$a) v0).mImageInfo);
                }
            }
        } while (true);

    }
}

